package com.example.demo.dto;

import com.example.demo.entity.Menu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

@Data
public class MenuDto {
    private int id;
    private String menuName;
    private String title;
    private String componentPath;
    private int parentId;
    private String path;
    private String iocn;
    private String redirect;
    private int menuOrder;
    private List<MenuDto> children;

    public void addChildren(MenuDto menu) {
        this.children.add(menu);
    }
}

